export default {
  title: 'Egglet',
  description: '一个全栈 JavaScript 后台管理系统框架',
  lang: 'zh-CN',
  lastUpdated: true,

  head: [
    ['meta', { name: 'theme-color', content: '#3aaf7d' }],
    ['link', { rel: 'icon', href: '/logo.svg' }],
  ],

  themeConfig: {
    logo: '/logo.svg',

    nav: [
      { text: '前言', link: '/philosophy' },
      { text: '项目规划', link: '/project-roadmap' },
      { text: '学习路径', link: '/learn-path/' },
      { text: '参与', link: '/contribute' },
      { text: 'Gitee', link: 'https://gitee.com/royhatsune/egglet' },
    ],

    sidebar: {
      '/learn-path/': [
        {
          text: '📚 学习路径',
          base: '/learn-path/',
          items: [
            { text: '学习路径总览', link: './' }, // ← 用 ./ 指向当前目录下的 index.md
            {
              text: '🔧 前端基础',
              collapsed: true,
              items: [
                { text: 'HTML：网页的“骨架”', link: 'html' },
                { text: 'CSS：网页的“皮肤”', link: 'css' },
                { text: 'JavaScript：网页的“大脑”', link: 'javascript' },
              ],
            },
            {
              text: '⚙️ 开发环境',
              collapsed: true,
              items: [
                { text: 'Node.js：JavaScript 的运行环境', link: 'node' },
              ],
            },
            {
              text: '🚀 现代前端',
              collapsed: true,
              items: [
                { text: 'Vue 3：响应式框架', link: 'vue' },
                { text: 'Pinia：状态管理', link: 'pinia' },
                { text: 'Vite：超快构建工具', link: 'vite' },
              ],
            },
            {
              text: '🏗️ 后端与数据库',
              collapsed: true,
              items: [
                { text: 'MongoDB：灵活文档数据库', link: 'mongodb' },
                { text: 'Redis：高速缓存（可选）', link: 'redis' },
                { text: 'Egg.js：企业级 Node 框架', link: 'egg' },
              ],
            },
            {
              text: '📦 部署交付',
              collapsed: true,
              items: [
                { text: 'Docker：一键部署神器', link: 'docker' },
              ],
            },
          ],
        }
      ]
    },

    footer: {
      message: 'Released under the MIT License.',
      copyright: 'Copyright © 2025 Egglet Community'
    }
  }
}